package com.zj.ckproxy.annotation;

import com.zj.baseproxy.annotation.Scan;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * ck扫描注册bean
 *
 * @author arthur_zhou
 * @date 2024/2/28 9:58
 */
@Documented
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Scan(beanCreateRuleBeanName = "ckBeanCreateRule")
public @interface CkScan {
    /**
     * bean名称
     * 默认就是首字母小写的接口名称
     *
     * @return bean名称
     */
    @AliasFor(annotation = Scan.class, attribute = "value")
    String value() default "";
}
